/* ======使用注明=======
 //#import "SEGCustomWholeView.h"
 //@property (nonatomic, strong)SEGCustomWholeView *varNeighborView; <#注释#>
 // 控件数据模型创建
 SEGCustomWholeViewModel *data = [[SEGCustomWholeViewModel alloc]init];
 // 控件内容布局计算
 SEGCustomWholeViewLayout *layout = [[SEGCustomWholeViewLayout alloc]initWithData:data type:SEGEnumNeighborViewType_NO];
 // 内容布局填充到视图
 SEGCustomWholeView *varNeighborView = [[SEGCustomWholeView alloc]initWithFrame:CGRectZero];
 //varNeighborView.delegate = self;
 varNeighborView.left = 0;
 varNeighborView.top = 0;
 varNeighborView.width = kScreenWidth;
 varNeighborView.height = varNeighborView.layout.totalHeight;
 [varNeighborView setWithLayout:layout];
 
 */
#import <UIKit/UIKit.h>
#import "SEGcustomContentView.h"
#import "SEGUgcListModel.h"
#define kNeighborViewHeight 100     // NeighborView的高度

typedef NS_ENUM(NSUInteger, SEGEnumNeighborViewType) {
    SEGEnumNeighborViewType_Text = 0, /*文本*/
    SEGEnumNeighborViewType_PhotoAndText = 1 /*图文*/
};

@protocol SEGprotocolWholeViewDelegate <NSObject>
@optional
-(void)SEGprotocolmonthLabel:(SEGLabel*)sender;
-(void)SEGprotocoldayLabel:(SEGLabel*)sender;
-(void)SEGprotocoldescribeLabel:(SEGLabel*)sender;
-(void)SEGprotocolcontentLabel:(SEGLabel*)sender;
//-(void)SEGprotocolCustomContentView:(SEGcustomContentView *)view;//内容视图点击代理
/**
 设置个人主页列表cell
 @author Wendy
 @param model
 @param indexPath 所在位置
 */
- (void)setUpPersonalListCellWithUgcListModel:(SEGcustomContentViewModel *)model indexPath:(NSIndexPath*)indexPath;
@end

@interface SEGCustomWholeViewModel : NSObject
@property (nonatomic, copy) NSString *time; //时间
@property (nonatomic, copy) NSString *year; // 年
@property (nonatomic, copy) NSString *month; //月
@property (nonatomic, copy) NSString *day; // 日

@property (nonatomic, copy) NSString* objId;
@property (nonatomic, copy) NSString* content;
@property (nonatomic, copy) NSString* objType;
@property (nonatomic, copy) NSString* operatorType; //1：转发pgc 2帮帮 3集市 5参与话题
@property (nonatomic, copy) NSString* shareId;
@property (nonatomic, copy) NSString* shareTitle;
@property (nonatomic, strong)NSString *pgcType;


@property (nonatomic, copy) NSString *describe; // 顶部副标题
@property (nonatomic, assign) CGFloat widgetWidth; //空间总宽度
@property (nonatomic, assign) BOOL isToday; 
/**
 是否隐藏当前日期
 */
@property (nonatomic, assign)BOOL shouldHiddenDate;

@property (nonatomic, strong)SEGcustomContentViewModel *cusDataSource; //发布内容数据
@property (nonatomic, assign) SEGEnumcustomContentViewType cusType;
@end

@interface SEGCustomWholeViewLayout : NSObject
@property (nonatomic, assign,readonly) CGFloat totalHeight;//控件总高度
@property (nonatomic, assign,readonly) SEGEnumNeighborViewType type;//控件类型
@property (nonatomic, strong,readonly)SEGCustomWholeViewModel *data;
@property (nonatomic, strong)SEGcustomContentViewLayout *cusLayout; //内容布局

- (instancetype)initWithData:(SEGCustomWholeViewModel *)data type:(SEGEnumNeighborViewType)type;
-(void)SEGCustomWholeViewLayout;

@property (nonatomic, assign) CGFloat monthLabelHeight;//monthLabel 高度
@property (nonatomic, strong) SEGTextLayout *monthLabelTextLayout;//monthLabel 富文本布局

@property (nonatomic, assign) CGFloat dayLabelHeight;//dayLabel 高度
@property (nonatomic, strong) SEGTextLayout *dayLabelTextLayout;//dayLabel 富文本布局

@property (nonatomic, assign) CGFloat describeLabelHeight;//describeLabel 高度
@property (nonatomic, strong) SEGTextLayout *describeLabelTextLayout;//describeLabel 富文本布局

@end

@interface SEGCustomWholeView : UIView
@property (nonatomic, strong,readonly)SEGCustomWholeViewLayout *layout;
- (void)setWithLayout:(SEGCustomWholeViewLayout *)layout;

@property (nonatomic, strong) SEGLabel *monthLabel; // 月
@property (nonatomic, strong) SEGLabel *dayLabel; // 日
@property (nonatomic, strong) SEGLabel *describeLabel; // 描述文本
@property (nonatomic, strong)SEGcustomContentView *customContentView; //封装第二层内容 + 图片布局

@property (nonatomic, strong) UIView *lineView; //线条
@property (nonatomic, assign) id<SEGprotocolWholeViewDelegate> delegate;// 代理
@end
